The TLookupReply Structure
You use theTLookupReply
structure to store information passed back to you by theOTLookupName
function. The information includes both a pointer to a buffer (containing registered entity names matching the criterion specified with theTLookupRequest
structure) and the number of names found.The
TLookupReply
structure is defined by theTLookupReply
data type.
struct TLookupReply { TNetbuf names; UInt32 rspcount; }; typedef struct TLookupReply TLookupReply;Field descriptions
names
- A
TNetbuf
structure that specifies the size and location of a buffer into which theOTLookupName
function, on return, places the names it has found. You must allocate the buffer into which the replies are stored when the function returns; you must set thenames.buf
field to point to it; and you must set thenames.maxlen
field to the size of the buffer.rspcount
- A long specifying, on return, the number of names found.